import _00SetFunc as ss
import __00SetRelation as sr

#复合运算
Xm,Ym,Zm,n1,n2=30,20,20,15,10
X=set(range(Xm))
Y=set(range(Ym))
Z=set(range(Zm))
R=sr.createrelation(X,Y,n1)
S=sr.createrelation(Y,Z,n2)
RS=sr.composite(R,S)
ss.drawgraph(RS)
print("R,S",R,S)
print("RS",RS)